﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    mc:Ignorable="d"
                    >



    
    <LinearGradientBrush x:Key="LightBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="#B3BFC7" Offset="0.0"/>
                <GradientStop Color="#B3BFC7" Offset="0.5"/>
            </GradientStopCollection>
        </GradientBrush.GradientStops>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="SolidBorderBrush" Color="#B3BFC7" />
    <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#DBE0E4" />
    <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />
    <SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />
    <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" />

    <LinearGradientBrush x:Key="LightBrush2" StartPoint="0,0" EndPoint="0,1">
        <GradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="Silver" Offset="0.0"/>
                <GradientStop Color="Silver" Offset="0.5"/>
            </GradientStopCollection>
        </GradientBrush.GradientStops>
    </LinearGradientBrush>

    <SolidColorBrush x:Key="SolidBorderBrush2" Color="Black" />
    <SolidColorBrush x:Key="WindowBackgroundBrush2" Color="#DEE0E4" />
    <SolidColorBrush x:Key="DisabledBackgroundBrush2" Color="#EEE" />
    <SolidColorBrush x:Key="DisabledBorderBrush2" Color="#AAA" />
    <SolidColorBrush x:Key="DisabledForegroundBrush2" Color="#888" />

    <Style x:Key="tab" TargetType="{x:Type TabItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="styleTabPrinc" TargetType="{x:Type TabItem}" >
                    <Grid>
                        <Border 
                        Name="Border"
                        Margin="2,0,2,0" 
                        Background="{StaticResource LightBrush}"
                        BorderBrush="{StaticResource SolidBorderBrush}" 
                        BorderThickness="1,1,1,1" 
                        CornerRadius="4,4,0,0" 
                            >
                            <ContentPresenter x:Name="ContentSite"
                              TextBlock.Foreground="#2D3E5B"
                              TextBlock.TextAlignment="Center"
                              VerticalAlignment="Center"
                              HorizontalAlignment="Center"
                              ContentSource="Header"
                              Margin="12,5,12,5"
                              Width="100"
                              />
                            
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Panel.ZIndex" Value="100" />
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource WindowBackgroundBrush}" />
                            <Setter TargetName="Border" Property="BorderThickness" Value="1,1,1,0" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />
                            <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
                
            </Setter.Value>
        </Setter>
        
    </Style>
    <Style x:Key="tab2" TargetType="{x:Type TabItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate x:Name="styleTabPrinc2" TargetType="{x:Type TabItem}" >
                    <Grid>
                        <Border 
                            Name="Border"
                            Margin="0,0,0,0" 
                            Background="{StaticResource LightBrush2}"
                            BorderBrush="{StaticResource SolidBorderBrush2}" 
                            BorderThickness="1" 
                            CornerRadius="0" 
                            Width="Auto"
                            MinHeight="71"
                                >
                            <ContentPresenter x:Name="ContentSite"
                                  TextBlock.Foreground="#2D3E5B"
                                  TextBlock.TextAlignment="Center"
                                  VerticalAlignment="Center"
                                  HorizontalAlignment="Center"
                                  ContentSource="Header"
                                  Margin="15,10,15,10"
                                  Width="85"
                                   
                                  />

                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelected" Value="True">
                            <Setter Property="Panel.ZIndex" Value="100" />
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource WindowBackgroundBrush2}" />
                            <Setter TargetName="Border" Property="BorderThickness" Value="1,1,1,0.5" />
                        </Trigger>
                        <Trigger Property="IsEnabled" Value="False">
                            <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush2}" />
                            <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush2}" />
                            <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush2}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>
    
    
</ResourceDictionary>